<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登录AI工具</title>
</head>
<body>
    <h1>登录</h1>
    <form action="index.php?action=login" method="post">
        <p>
            <label for="username">用户名：</label>
            <input type="text" id="username" name="username" required>
        </p>
        <p>
            <label for="password">密码：</label>
            <input type="password" id="password" name="password" required>
        </p>
        <p>
            <label for="captcha">验证码：</label>
            <input type="text" id="captcha" name="captcha" required>
            <span><?php echo $_SESSION['captcha']; ?></span>
        </p>
        <p>
            <input type="submit" value="登录">
        </p>
    </form>
</body>
</html>